package com.socodethis.spaceex;

import com.badlogic.gdx.graphics.g2d.Sprite;
import com.socodethis.spaceex.math.cPoint;

public class playerClass extends charClass {
	
	int currentLives;
	
	
	public playerClass(spriteAnimate movement, dungeonGenerator map, int currentLives) {
		super(movement, map);
		this.currentLives = currentLives;
		if(this.currentLives == 0){
			this.currentLives = 9;
		}
	}
	public void runUpdate(float currentTime){
		this.setSprite(currentTime);
	}
	public int getLives(){
		return currentLives;
	}
	public void lostLife(){
		currentLives--;
	}
}
